package main

// 3、打印100以内的斐波那契数列

import "fmt"

func fibonaci(n int) (res int) {
	if n <= 1 {
		res = 1
	} else {
		res = fibonaci(n-1) + fibonaci(n-2)
	}
	return res
}

func main3() {
	result := 0
	for i := 0; i <= 10; i++ {
		result = fibonaci(i)
		fmt.Printf("fabonaci(%d)is: %d", i, result)
	}

}
